/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/ccjzxyxt">ccjzxyxt</a> All rights reserved.
 */
package cn.net.dckj.modules.biz.entity;

import org.hibernate.validator.constraints.Length;
import javax.validation.constraints.NotNull;

import cn.net.dckj.common.persistence.DataEntity;

import java.util.Date;

/**
 * 云服务器套餐订单Entity
 * @author hqj
 * @version 2019-04-22
 */
public class BizEcsOrder extends DataEntity<BizEcsOrder> {
	
	private static final long serialVersionUID = 1L;
	private String goodId;			// 用户id
	private String setMealId;		// 套餐id
	private String mealName;		// 套餐名称
	private String cpuNumber;		// cpu核心数
	private String ramSize;			// 内存大小
	private String storageSize;		// 磁盘存储大小
	private Integer mealUseTime;	// 使用天数
	private Double mealPrice;		// 套餐价格
	private Double price;			// 费用
	private String orderFlag;		// 订单状态  1 未支付  2 已支付  3 已到期
	private Date payTime;			//订单支付时间
	private String payType;			//支付类型 1 支付宝 2 微信
	private String tradeNo;			//支付宝交易号
	private String sellerId;		//收款支付宝账号对应的支付宝唯一用户号。 以2088开头的纯16位数字

	public String getPayType() {
		return payType;
	}

	public void setPayType(String payType) {
		this.payType = payType;
	}

	public String getTradeNo() {
		return tradeNo;
	}

	public void setTradeNo(String tradeNo) {
		this.tradeNo = tradeNo;
	}

	public String getSellerId() {
		return sellerId;
	}

	public void setSellerId(String sellerId) {
		this.sellerId = sellerId;
	}

	public Date getPayTime() {
		return payTime;
	}

	public void setPayTime(Date payTime) {
		this.payTime = payTime;
	}

	public BizEcsOrder() {
		super();
	}

	public BizEcsOrder(String id){
		super(id);
	}

	@Length(min=1, max=64, message="用户id长度必须介于 1 和 64 之间")
	public String getGoodId() {
		return goodId;
	}

	public void setGoodId(String goodId) {
		this.goodId = goodId;
	}
	
	@Length(min=1, max=64, message="套餐id长度必须介于 1 和 64 之间")
	public String getSetMealId() {
		return setMealId;
	}

	public void setSetMealId(String setMealId) {
		this.setMealId = setMealId;
	}
	
	@Length(min=1, max=100, message="套餐名称长度必须介于 1 和 100 之间")
	public String getMealName() {
		return mealName;
	}

	public void setMealName(String mealName) {
		this.mealName = mealName;
	}
	
	@Length(min=1, max=2, message="cpu核心数长度必须介于 1 和 2 之间")
	public String getCpuNumber() {
		return cpuNumber;
	}

	public void setCpuNumber(String cpuNumber) {
		this.cpuNumber = cpuNumber;
	}
	
	@Length(min=1, max=2, message="内存大小长度必须介于 1 和 2 之间")
	public String getRamSize() {
		return ramSize;
	}

	public void setRamSize(String ramSize) {
		this.ramSize = ramSize;
	}
	
	@Length(min=1, max=2, message="磁盘存储大小长度必须介于 1 和 2 之间")
	public String getStorageSize() {
		return storageSize;
	}

	public void setStorageSize(String storageSize) {
		this.storageSize = storageSize;
	}
	
	@NotNull(message="使用天数不能为空")
	public Integer getMealUseTime() {
		return mealUseTime;
	}

	public void setMealUseTime(Integer mealUseTime) {
		this.mealUseTime = mealUseTime;
	}
	
	@NotNull(message="套餐价格不能为空")
	public Double getMealPrice() {
		return mealPrice;
	}

	public void setMealPrice(Double mealPrice) {
		this.mealPrice = mealPrice;
	}

	public Double getPrice() {
		return price;
	}

	public void setPrice(Double price) {
		this.price = price;
	}

	@Length(min=1, max=1, message="订单状态长度必须介于 1 和 1 之间")
	public String getOrderFlag() {
		return orderFlag;
	}

	public void setOrderFlag(String orderFlag) {
		this.orderFlag = orderFlag;
	}
	
}